const state = {
    sidebar: {
        isClose: false //侧边栏是否收起
    }
};

const mutations = {
    //第二参数为传值，可不填
    SETTING_SIDEBAR: (state, isClose) => {
        state.sidebar.isClose = isClose;
    }
};

const actions = {
    //第二参数为传值，可不填
    setting_sidebar({ commit }, isClose) {
        commit("SETTING_SIDEBAR", isClose);
    }
};

export default {
    namespaced: true,
    state,
    mutations,
    actions
};
